Fixed a resource leak in haas_init.py

of the form for x in open(y): ...