code: def splitList(self, elements, chunksnum):
          
          if len(elements) < chunksnum:
              return [elements]
          groups = zip(*[elements[i::chunksnum] for i in range(chunksnum)])
          if len(groups) * chunksnum < len(elements):
              groups.extend([elements[-(len(elements) - len(groups) * chunksnum):]])
          return groups
docs: Splits a list to a n lists with chunksnum number of elements
              each one.
              For a list [3,4,5,6,7,8,9] with chunksunum 4, the method
              will return the following list of groups:
              [[3,4,5,6],[7,8,9]]