def _needs_hiding(mod_name):
    pattern = re.compile('(setuptools|pkg_resources|distutils)(\.|$)')
    return bool(pattern.match(mod_name))
>>> _needs_hiding('setuptools')
dataset/ETHPy150Open chalasr/Flask-P2P/venv/lib/python2.7/site-packages/setuptools/sandbox.py/_needs_hiding