Another Python 3 fix for simulating bias.