Fix exceptions when using flootty on python 3.