Dispatch function decorator for python docopt library