Allow IOTools.py to be properly run as a script