Ensure that curried functions can be reused.
Move Curry class to functions.py.