def writeToFile(data, fileName):
 global memory_files
 log.debug(("Opening memory file `%s' for writing." % fileName))
 memory_files[fileName] = StringIO.StringIO(data)

def writeToFile ( data , fileName ) : global memory_files log . debug ( ( "Opening memory file `%s' for writing." % fileName ) ) memory_files [ fileName ] = StringIO . StringIO ( data )
writes the given data to the file specified by filename .