Implement File Operation In Python