Fixed reshuffle to work w/ Py3k.