'Check if the initial word/function is callable and autocall is on.'

def check(self, line_info):

    if (not self.shell.autocall):
        return None
    oinfo = line_info.ofind(self.shell)
    if (not oinfo['found']):
        return None
    ignored_funs = ['b', 'f', 'r', 'u', 'br', 'rb', 'fr', 'rf']
    ifun = line_info.ifun
    line = line_info.line
    if ((ifun.lower() in ignored_funs) and (line.startswith((ifun + "'")) or line.startswith((ifun + '"')))):
        return None
    if (callable(oinfo['obj']) and (not self.exclude_regexp.match(line_info.the_rest)) and self.function_name_regexp.match(line_info.ifun)):
        return self.prefilter_manager.get_handler_by_name('auto')
    else:
        return None
