Basic File Operation In Python Code