File Write Functions Python Exercises Hackerrank