def fragment_to_keys(fragment):
    """Split a fragment, eg. #/components/headers/Foo
        in a list of keys ("components", "headers", "Foo")
    """
    return fragment.strip("#").strip("/").split("/")