'Returns a dictionary of all RPC method names provided by this
class. This method returns the actual  method names as found
in the class definition which have been decorated with:
@remote
def some_rpc_method(arg1, arg2)
Unless:
(1) the name has been remapped, in which case the new
name will be returned.
@remote("new_name")
def some_rpc_method(arg1, arg2)
(2) the method is set to hidden
@remote(False)
def some_hidden_method(arg1, arg2)'

def get_methods(self):

    result = dict()
    for function in dir(self):
        test_attr = getattr(self, function, None)
        try:
            if test_attr._rpc:
                result[test_attr._rpc_name] = test_attr
        except Exception:
            pass
    return result
