updates to allow the tests to run from python 3

I've only tested this with 3.3, as I don't have access to 3.2. If travis shows anything i'll try and get 3.2 installed locally as well.