Antoine Pitrou added the comment: The "import random" isn't needed in your patch. ---------- nosy: +pitrou _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue17137> _______________________________________