import inspect


def ListAllMethodsInClass(classobj,classname='',sort=False):
    """ List all method names in class
    
    :param obj classobj: module.class, e.g., molec.Atom
    :param str classname: class name for return, e.g., 'Atom'
    :return: classname(str) - class name
    :return: methds(lst) - list of method names
    """
    methods=[]
    lst=inspect.getmembers(classobj, predicate=inspect.ismethod)
    for name,obj in lst: methods.append(name)
    try: methods.remove('__init__')
    except: pass
    if sort: methods.sort()
    return classname,methods