You are reading the documentation for python 3.4, but you are probably using an older version of python.
Here is how to use ConfigParser in older versions of python:
import ConfigParser
parser = ConfigParser.ConfigParser()
info = {"User1-votes":"36","User1-gamestart":"13232323","User2-votes":"36","User2-gamestart":"234234234","User3-votes":"36","User3-gamestart":"13232323"}
parser.add_section('User-Info')
for key in info.keys():
parser.set('User-Info', key, info[key])
with open('config.ini', 'w') as f:
parser.write(f)