Curried bug fix

When I used the curried decorator my system threw an error.

So I have made a test and a bug fix (and some pep8'ing) here.

Hope you like it.