File Handling Functions In Python