How To Write A Variable To A File In Python