improving interactive=X mode and updating test.py