Use inspect.getargspec() (related to #264017) [applied]