Added another testcase for subtag expansion.
Fixed a bug on Python 3 when writing to stdout
Added a missing changelog entry