Seemed to be a problem with inspect.ismethod(v) (~ln 92)
it's supposed to return True for bound methods
does not return true. it does return true in 2.7
but the methods are not bound... ?
replaced it with inspect.isfunction
No idea if that's a reasonable thing to do.

also replaced func.__func__.__code__... with
func.__code__ @ ln 164
Again, not sure if that's a reasonable thing to do.