code: def get_all_zones(self):
          
          zones = {'HostedZones': []}
  
          new_zones = self.route53.list_hosted_zones(MaxItems='100')
          while new_zones['IsTruncated']:
              zones['HostedZones'] += new_zones['HostedZones']
              new_zones = self.route53.list_hosted_zones(Marker=new_zones['NextMarker'], MaxItems='100')
  
          zones['HostedZones'] += new_zones['HostedZones']
          return zones
docs: Same behaviour of list_host_zones, but transparently handling pagination.