def appendLine(file_path, line):
    """
    Adds a line at the end of the file.
    If used from command line, the new line character \\n is ignored (needs parsing) 
    """
    with open(file_path, 'a') as myfile:
        myfile.write('\n')
        myfile.write(line)
