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