revert a change in shuffle.py