'Rewrite the inconfig, substituting variables'

def write_interpreted_xml_file(self, inConfFile, globalvars={}):

    tmpFile = open(inConfFile, 'w')
    configdata = self.getMarshalledInConfig()
    configlines = configdata.split('\n')
    newlines = []
    for line in configlines:
        newlines.append(util.variable_replace(line, globalvars))
    newconfig = '\n'.join(newlines)
    tmpFile.write(newconfig)
    tmpFile.close()
    return inConfFile
