Prior to Python 3.5 nested partials need to be fully "unfolded" to get the actual function.
Thanks to Tim Graham for the review.