Catch ValueError due to getargspec behaviour in Python 3.4