Another batch toward python3 compat

Added a compatibility module to ease module renaming for python3.
Also moved the tests to use the compat's TestCase