run 2to3 on code and test with py27

run '2to3 -n future' on code
This code passes all tests run under py27