This helper function handles incoming test_data for make_object_dict.
    If thereis a special handler in git_object_handlers_lookup, this
    is used. Otherwise, the given name:obj pair is returned
    as-is.
    :param name: String
    :param obj: The object to be processed.
    :return: A dictionary of attributes.

def handle_object(name, obj):
    """
    This helper function handles incoming test_data for make_object_dict.
    If thereis a special handler in git_object_handlers_lookup, this
    is used. Otherwise, the given name:obj pair is returned
    as-is.
    :param name: String
    :param obj: The object to be processed.
    :return: A dictionary of attributes.
    """
    if type(obj) in git_object_handlers_lookup:
        return git_object_handlers_lookup[type(obj)](name, obj)
    else:
        return {name:obj}