def unmake_xml_name(attr_name):
    """ Convert an XML attribute name to its pythonic equivalent by replacing
    all '-' with '_'. CamelCase names are retained as such.

    :param str attr_name: Name of the attribute

    :returns: Attribute name in pythonic format.
    """
    return attr_name.replace('-', '_')