When I see `set(response['visible_layers'].split(','))` visible_layers should be a string, than by the same way than before :-)