Fix compatibility issue introduced in 1.2.2 for python<2.7

Thanks to Bert IJff for reporting.

Fixes #38
3 files changed