Use DictMixin to make D object behave like a dict. #136