moving tools.py out again