fix python 3k imports and add python 2.5, and 3.2 to travis