def run(self, incoming, methods, info):
    try:
        msgs = info['args'][1:][0].split()
        if ((info['command'] == 'PRIVMSG') and (msgs[0] == '.google')):
            term = ''
            if (len(msgs) > 1):
                for msg in msgs[1:]:
                    term += msg
                for link in Plugin.__google(term):
                    methods['send'](info['address'], link)
            else:
                methods['send'](info['address'], "Input error. '.google search_term'.")
    except Exception as e:
        print('woops plugin error: ', e)
def run(self, incoming, methods, info):
    try:
        msgs = info['args'][1:][0].split()
        if ((info['command'] == 'PRIVMSG') and (msgs[0] == '.google')):
            term = 
            if (len(msgs) > 1):
                for msg in msgs[1:]:
                    term += msg
                for link in Plugin.__google(term):
                    methods['send'](info['address'], link)
            else:
                methods['send'](info['address'], "Input error. '.google search_term'.")
    except Exception as e:
        print('woops plugin error: ', e)