In Qubes, I check tor status like this:
torrc = '/etc/tor/torrc'
with open(torrc, 'r') as infile:
text = infile.read()
if re.search(r'^DisableNetwork 0$', text, re.MULTILINE):
if subprocess.check_output(['systemctl', 'is-enabled', 'tor']).strip() == 'enabled':
subprocess.call(['systemctl', 'reload', 'tor'])
I have tested the setup-wizard and seems to be working very nice. Good job!
I am preparing a Whonix 9.6 release for withing the next week or so and was wondering if there are any show stoppers on why I should not use the current version for that release.
One thing of note that you may want to consider before final release is complying to python's PEP8 standards (class names CamelCase; method names snake_case). There is autopep8 and pep8 you can grab from pypi to analyze your code.