utils/compare.py: Add a main() function

This prevents all the variables being declared as globals. I noticed this
due to a typo while working on D121908.
1 file changed