add currying in Python Function