can the python print output be redirect to a file using code example Example: redirect python output to file $ python foo.py > file