def safe_py_code(code):
    bads = (
            'import',
            ';',
            'subprocess',
            'eval',
            'open',
            'file',
            'exec',
            'input')
    for bad in bads:
        if code.count(bad):
            return False
    return True
Check a string to see if it has any potentially unsafe routines which
dataset/ETHPy150Open saltstack/salt/salt/utils/verify.py/safe_py_code