Fixing #28 which was introduced by python3 changes

Introduced in fdf99b1f3674dada7f22ca2636addb596c3294eb