Matching slug lines on Py2 and Py3

The behavour of random.choice() changed in Python 3.2 due to a bias in
the output. This backports the new 3.2 behaviour to earlier Python
versions.