changing tabs to spaces in virtual_machine.py, removing unused imports