Adding two upstream fixes for Python 3.11 compatibility replacing the deprecated inspect.getargspec method.