How can I split a file in python?,output.close()