i think something like:

    identifier = 'dataset.%(name)s' % to_identifier(name)
    # ...
        if dataset['meta']['identifier'] == identifier:

would be more relevant. Plus, it's easier to know the syntax of the identifier reading the code, in case some things change in the API.