def _pythonify_name(name):
    """Coerce the name to a valid Python identifier"""
    name = ''.join(c if c.isalnum() else '_' for c in name)
    if name[:1].isdigit():
        name = '_' + name
    return name