'Wrapper for python built-in help
Usage:
MYNAME (enter interactive help)
MYNAME help_request'

def pyhelp(self, *arg):

    (request,) = normalize_argv(arg, 1)
    if (request is None):
        help()
        return
    peda_methods = [('%s' % c) for c in dir(PEDA) if (callable(getattr(PEDA, c)) and (not c.startswith('_')))]
    if (request in peda_methods):
        request = ('peda.%s' % request)
    try:
        if request.lower().startswith('peda'):
            request = eval(request)
            help(request)
            return
        if ('.' in request):
            (module, _, function) = request.rpartition('.')
            if module:
                module = module.split('.')[0]
                __import__(module)
                mod = sys.modules[module]
                if function:
                    request = getattr(mod, function)
                else:
                    request = mod
        else:
            mod = sys.modules['__main__']
            request = getattr(mod, request)
        help(request)
    except:
        try:
            help(request)
        except Exception as e:
            if (config.Option.get('debug') == 'on'):
                msg(('Exception    (%s):    %s' % ('pyhelp', e)), 'red')
                traceback.print_exc()
            msg(("no    Python    documentation    found    for    '%s'" % request))
    return
