According to what I read in the ConfigParser module, this should work, but it doesn't. Can anyone point out what I'm doing wrong?

Code:
    def writeinifile ( self, FILE='P:/INI/test.ini', SECTION='Testsection', OPTION='Item', VALUE='wheeee' ):
        p = ConfigParser()
        p.read(FILE)
        if not p.has_section ( SECTION ):
            p.add_section(SECTION)
        p.set(SECTION, OPTION, VALUE)
...