Convert matcher.py to use optparse