Python 2.6, 3.3 compatibility and testing