working version of weightedParsimony.py for command line