def METHOD_NAME(name, fallback_prefix="x"):
    """Make *name* usable for vectors, tables, and columns
    This is a simplified copy of the legalize_vector_name() function
    from the library (not available in 7.8).
    """
    if fallback_prefix and re.match("[^A-Za-z]", name[0], flags=re.ASCII):
        name = "{fallback_prefix}{name}".format(**locals())
    name = re.sub("[^A-Za-z0-9_]", "_", name, flags=re.ASCII)
    keywords = ["and", "or", "not"]
    if name in keywords:
        name = "{name}_".format(**locals())
    return name