Add isMappingType for python 3, few other imports