changed a map function creating some side-effects (rendering macro tags in the macros.py file) to a for-loop, for python 3 compatibility as map no longer creates side-effects or something of the sort in python 3.