[WIP] port to python 3.2, 3.3