Add isMappingType for python 3
Trying to fix some relative imports