Appends msg onto the Given File

def append_onto_file(self, file_name, msg):
        """
            Appends msg onto the Given File
        """
        with open(file_name, "a") as heart_file:
            heart_file.write(msg)
            heart_file.close()