Split Function In Python File Handling