range is not a list in python 3