def FormatNameToPython(i):
    """
    Transform a (method) name into a form which can be used as a python
    attribute

    example::

        >>> FormatNameToPython('<clinit>')
        'clinit'

    :param i: name to transform
    :rtype: str
    """
    i = i.replace('<', '')
    i = i.replace('>', '')
    i = i.replace('$', '_')
    return i
