Why don't you iterate directly on ```sites``` or on an instance of ```openquake.hazardlib.site.SiteCollection``` ? Do you need ```depth``` information?