iterator; escape {} in python string format in configuration