You can also use functools.partial