Use the PY32 constant for the AST change in Python 3.3
Detect the declared encoding in Python 3; fixes lp:1299169
Fix the test docstring