Replaced django's curry with Python's partial.