def dir(suffix='', prefix='tmp', parent=None):
 return tempfile.mkdtemp(suffix, prefix, parent)

def dir ( suffix = '' , prefix = 'tmp' , parent = None ) : return tempfile . mkdtemp ( suffix , prefix , parent )
a version of dir() that supports netproxies .