def writing_file(FILENAME, att='a', MESSAGE=""):

    try:
        with open(FILENAME, att) as f:
            f.write(MESSAGE)
            f.write('\n')

    except __HOLE__ as e:
        print "I/O error({0}): {1} for file {2}".format(e.errno, e.strerror, FILENAME)
dataset/ETHPy150Open bt3gl/Neat-Problems-in-Python-and-Flask/Version-Control/src/system_operations.py/writing_file