made minor changes in weightedParsimony.py