'Do API calls to each region, and save data in cache files'

def do_api_calls_update_cache(self):

    for projectInfo in self.get_projects():
        if (projectInfo.name in self.projects):
            self.get_devices_by_project(projectInfo)
    self.write_to_cache(self.inventory, self.cache_path_cache)
    self.write_to_cache(self.index, self.cache_path_index)
