Added tools.py file and a couple tool like methods