Refs #13771; added necessary changes to macro.py to avoid pylint violations