def _is_py_file(path):
    return os.path.splitext(path)[1] in ['.py','.pyc','.pyo','.pyd']
Return True if path ends in .py, .pyc, .pyo, or .pyd
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.util/src/openmdao/util/envirodump.py/_is_py_file