How To Write Up A File In Python