Problem generating room views with python

It tells me that there is a problem because the viewname is duplicated but it generates the views, but the pythonscript comes out null