Great! Now we don't risk leaving the file open and messing with the data if our program runs for a long time.
Make sure to call .close() on python_file.
.close()
python_file