Use for-in instead of iteration to list index namespaces