Python 3.4 fixes

I ran the test suite under Python 3.4b1 and hit a couple of inconsequential test failures.