python return stream path of file to redirect to code example Example: redirect python output to file $ python foo.py > file