minor tweak to maxWeight.py. added test files and scripts for testing maxWeight.py.