Bas Westerbaan's suggested speed improvement for random.shuffle.

See https://bugs.launchpad.net/pycrypto/+bug/1171237