Fixed deprecated getargspec() function for Python 3.x

A fix for Python 3.x when trying to run aws-cli tool "ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them" error