Shifted around modules. Now requires that cgtools be listed in the PYTHONPATH environment variable.