Validate document contents against verified output
Test also on Python 3.2 and 3.4
Explain what happens at write