move interactive_wrapper to tools
fix up all flake8 warnings
refactor rename vm variable