vm: fix pep8 and python3 issues