Once you rebase adding a xrange = range under the ``If PY3:`` section will be required to make this work.