How do I pipe the output of file to a variable in Python?,"output = Popen(['mycmd', 'myarg'], stdout=PIPE).communicate()[0]"