Python Save Variable To Text File