make everything work in py 2.6, 2.7, 3.2, 3.3