Improve testing of %pythonprepend and %pythonappend
Correct dates in recent commits to CHANGES file
Add %pythonbegin directive.

For adding code at the beginning of the generated .py file.