Probable fix for Ken's test_distsim.py error.
Merge pull request #1489 from setowns1/bug

Probable fix for Ken's test_distsim.py error.