bug 672: add python-based maxloc.py for unit testing