python 3.3 test fixes