Update quickstart-python.rst

Use more Pythonic idioms for ranges, random selection.