File Operation Code In Python