Fix broken import in Python 3.x

Updates mnemonic to work with Pythons 2.7, 2.8, 3.3, 3.4, and PyPy.

Tests pass in all of the above versions.