Geeksforgeeks File Handling Python