[range(n)] replaced with [list(range(n))] in test_stochmatrix.py (for python 3)