A test compared list directly against a range(). This is py3 incompatible. Fixed by using list(range()).