Tweaked error message handling and python/js dependencies.