Retrieve attributes without triggering dynamic lookup via the descriptor protocol, __getattr__() or __getattribute__().
inspect.getattr_static(obj, attr, default=None)