Replace all foreach calls with for, foreach is dropped from hy >= 0.9.12
and the *for* provides the same functionality now.

Signed-off-by: Vasudev Kamath <kamathvasudev@gmail.com>