code: def getDevType(self, dev):
          
          if self._devClassTree is None:
              self._initDevClasses()
          return self._mapDevType.get(dev)
docs: Returns type of device dev.
          
          @return: Device type as string.