Made it so `postgres_to_s3.py` writes stdout to a file instead of storing all of stdout in memory.