pep8 fixes, and fixed a logic error in the test where a) the test was expecting the shuffled array to be the same as the original, and b) the shuffled array was sometimes the same as the original.