Python 3 compatibility

This patch series makes pyfdt work with python2 (2.7) as well as with python 3 (3.2). 
On my machine, all the tests pass with python2.7 as well as python3.2.