title: Python ConfigParser module fails to find section
body: <p>I'm using Python 2.6 to write in an .ini file, called config.ini. Here's my code:</p>
  
  <pre><code>def saveConfig(self, selection, value, bool):
      Config = ConfigParser.RawConfigParser()
      Config.read("config.ini")
      Config.set(selection, value, bool)
      with open('config.ini', 'w') as configfile:
          Config.write(configfile)
  </code></pre>
  
  <p>It's ok so far, but when I run my script (thus the function <code>self.saveConfig('Config', 'testoption', 'True')</code>, I get the NoSectionError exception: </p>
  
  <blockquote>
    <p>ConfigParser.NoSectionError: No section: 'Config'</p>
  </blockquote>
  
  <p>Which seems pretty weird as I actually have this section.</p>
  
  <p>Here's my config.ini file:</p>
  
  <pre><code>[Config]
  version = 0.1-unstable
  testoption = False
  testbool = True
  </code></pre>
  
  <p>I can read their values using the .get() method, but can not set different values. Ideas? Thanks in advance.</p>