def _decorator(*args):
    result = method(*args)
return results if len(results) != 1 else results[0]
return _decorator
Getting a Python function to cleanly return a scalar or list, depending on number of arguments