'Performs the \'/python\' operation, toggling if we accept python commands or
not.'

def do_python(self, arg):

    if (not arg):
        status = ('enabled' if self._run_python_commands else 'disabled')
        return format(('Python    support    is    currently    %s.' % status), *STANDARD_OUTPUT)
    elif (arg.lower() == 'enable'):
        self._run_python_commands = True
    elif (arg.lower() == 'disable'):
        self._run_python_commands = False
    else:
        return format(("'%s'    is    not    recognized.    Please    run    either    '/python    enable'    or    '/python    disable'." % arg), *ERROR_OUTPUT)
    if self._run_python_commands:
        response = "Python    support    enabled,    we'll    now    run    non-interpreter    commands    as    python."
    else:
        response = "Python    support    disabled,    we'll    now    pass    along    all    commands    to    tor."
    return format(response, *STANDARD_OUTPUT)
