I fixed most of the pylint errors for macformatter.py.
The code is less ugly, now.
I updated the code to fix many pylint errors.  There is still
room for improvement.