An exploration of partial() and partialmethod() in functools