Add foreach.py.