fix metaclass usage for py3
always import from ._compat
Merge pull request #744 from ThomasWaldmann/sprint-branch

2 small fixes for metaclass and import usage