first try at fixing inspector.py