Implementation of Haskell's autocurry feature in Python using a decorator