@staticmethod
def unmangle_name(name, classname):
    """Remove __ from the end of _name_ if it starts with __classname__
        return the "unmangled" name.
        """
    if name.startswith(classname) and name[-2:] != '__':
        return name[len(classname) - 2:]
    return name
