FIX small bugfix in list-entities.py script

Small fix in script.

I think it doesn't worth the effort to double merge also in release/iotplaform-v1 (this script is not used in that deployment).