code: def list_bucket(self, bucket):
      
      self.response.write('Listbucket result:\n')
  
      page_size = 1
      stats = gcs.listbucket(bucket + '/foo', max_keys=page_size)
      while True:
        count = 0
        for stat in stats:
          count += 1
          self.response.write(repr(stat))
          self.response.write('\n')
  
        if count != page_size or count == 0:
          break
        stats = gcs.listbucket(bucket + '/foo', max_keys=page_size,
                               marker=stat.filename)
docs: Create several files and paginate through them.
  
      Production apps should set page_size to a practical value.
  
      Args:
        bucket: bucket.