Make test_tools.py usable from command line