removing xrange from tests (py3 migration)