Python Write Variable To Text File