def no_trailing_comma(l):
    """
    By-lines wikidata dumps have trailing commas (on all but the last line). Remove them.
    """
    if l[-1] == ',':
        return l[:-1]
    else:
        return l