Refs #46 -- Add Py3 support.

Hello,

I tried to port the code to Python3 but there is this last doctest I cannot get rid of.
Should we rewrite it in unittest? A little help?