def METHOD_NAME(module):
    for name in dir(module):
        item = getattr(module, name)
        if hasattr(item, 'mro'):
            mro = item.mro()
            # Our own throttle classes we've defined.
            if BaseThrottle in mro and item.__module__.startswith('olympia.'):
                yield item
            # Every throttle class referenced in viewsets.
            if GenericViewSet in mro:
                for throttle in getattr(item, 'throttle_classes', []):
                    if throttle:
                        yield throttle