Fix various flake8/hacking warnings
Fix changelog extraction for plain-version packages