python file handling - Programmer Tech