using python-foreach-impl