A natural way to partial a function for python.