I am attempting to write a pretty printed email to a .txt file so i can better view what I want to parse out of it.
Here is this section of my code:
resu
You are missing the brackets at the end of f.close().
f.close()