getargspec raises a type error when the argument is not a method.