Use functools.partial