def _popen(cmd):
 p = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE, close_fds=(os.name != 'nt'), universal_newlines=True)
 return p.communicate()

def _popen ( cmd ) : p = Popen ( cmd , shell = True , stdout = PIPE , stderr = PIPE , close_fds = ( os . name != 'nt' ) , universal_newlines = True ) return p . communicate ( )
friendly wrapper around popen for windows .