I know functools.partial. I don't see how it would help here.