Fix write to fh in resources_as_xml
Use Sitemap.resources_as_xml() to implement write()
Count files read
Change params for reading resource list