next(getattr(c, f).__globals__['sys'] for c in ().__class__.__base__.
    __subclasses__() for f in dir(c) if isinstance(getattr(c, f, None),
    type(lambda : None)) and 'sys' in getattr(c, f).__globals__)
Access module 'sys' without using import machinery