Tidying up code. inspector.py created.