Fixed deprecated getargspec() functions for Python 3.x