code: def checkAndCreateClasses(self, classes):
          
          actual_classes = self['puppetclasses'].keys()
          for i in classes:
              if i not in actual_classes:
                  self['puppetclasses'].append(i)
          self.reload()
          return set(classes).issubset(set((self['puppetclasses'].keys())))
docs: Function checkAndCreateClasses
          Check and add puppet class
  
          @param classes: The classes ids list
          @return RETURN: boolean