def list_public_methods(obj):
    """Returns a list of attribute strings, found in the specified
    object, which represent callable attributes"""

    return [member for member in dir(obj)
                if not member.startswith('_') and
                    callable(getattr(obj, member))]
Returns a list of attribute strings, found in the specified
    object, which represent callable attributes
debugger/src/_pydev_imps/_pydev_SimpleXMLRPCServer.py