Changing imports to work with testing, adding an ioerror if the scripts directory is not found, and adding some debugging messaging