def getargspec_no_self(func):
        argspec = inspect.getargspec(func)
        if argspec.args[0] == 'self':
            argspec.args.pop(0)
        return argspec
inspect.getargspec replacement for compatibility with python 3.x.
dataset/ETHPy150Open scipy/scipy/scipy/_lib/_util.py/getargspec_no_self