Alternate means to check for instancemethod call via type which also works on Python 3.