import inspect
for name, method in inspect.getmembers(a, inspect.ismethod):
    print(name)
args, varargs, varkw, defaults = inspect.getargspec(method)
for arg in args:
    pass
Python Introspection: How to get varnames of class methods?