code: def list(self, argv):
          
  
          def read(index):
              print(index.name)
              for key in sorted(index.content.keys()): 
                  value = index.content[key]
                  print("    %s: %s" % (key, value))
  
          if len(argv) == 0:
              for index in self.service.indexes:
                  count = index['totalEventCount']
                  print("%s (%s)" % (index.name, count))
          else:
              self.foreach(argv, read)
docs: List available indexes if no names provided, otherwise list the
             properties of the named indexes.