Fixed pylint warnings for macro.py