Pyexec and _tools.py

Add pyexec and _tools.py files