Some testcases and improved parsing in case Tor's #8596 is implemented
bump versions and copyright for 0.8.0
pep8 fix