Make the code compatible with both python 2 and 3
Build also on python 3.2 and 3.3