Use getattr to find methods and __swagger_attr, so that subclasses can remove support for methods