Fixed the currying to use functools.partial instead, thus making it more python-y.