Python 3.4 compatibility (fixes #8)