Python Write Variable Value To Text File