@glogiotatidis 
The generator expression returns a dictionary if the key 'status' exists in the list of dictionaries (flags). So, in this case replacing None probably won't work. Thoughts?