fixing typos and import names for Python 3

Typo and import name fixes after review from @guidow on #30