Add unbound method implementation to typecheck 'self' for python 3