def gene_name_pull(feature):
    """Attempt to grab gene name, if gene name not found, grab locus_tag instead."""
    try:
        if len(feature.qualifiers['gene']) != 1:
            print(feature.qualifiers['gene'])
            assert False
        return feature.qualifiers['gene'][0]
    except KeyError:
        if len(feature.qualifiers['locus_tag']) != 1:
            print(feature.qualifiers['locus_tag'])
            assert False
        return feature.qualifiers['locus_tag'][0]