Append to file in Python

Append to file in Python