How can I use functools.singledispatch with instance methods? How can I use functools.singledispatch with instance methods? python python