def TemporaryFile(mode='w+b', bufsize=(-1), suffix='', prefix=template, dir=None):
 return StringIO()

def TemporaryFile ( mode = 'w+b' , bufsize = ( - 1 ) , suffix = '' , prefix = template , dir = None ) : return StringIO ( )
create and return a temporary file .