def handle_message(message):
    try:
        code = compile(message, '', 'eval')
    except SyntaxError:
        code = compile(message, '', 'exec')
    return eval(code, env)
def handle_message(message):
    try:
        code = compile(message, , 'eval')
    except SyntaxError:
        code = compile(message, , 'exec')
    return eval(code, env)