def name_from_path(path):
    """
    Gets the name of a key from its path
    """
    path = path.replace('/', '\\')
    if path[-1] == '\\':
        path = path[:-1]
    return path.split('\\')[-1]
