def decorator(take_a_function):

    def wrapper1(take_a_function):

        def wrapper2(*takes_multiple_arguments):
            return take_a_function(*takes_multiple_arguments)
return wrapper2
return wrapper1
Python decorator with Flask