Merge pull request #2 from ulope/master

Python 3 compatibility
Invert Python 3 import guard "direction" to prevent errors on Python 2.7