Python 3 fixes for MethodDispatcher as a method