changed 'range' to use generators instead of lists, for python2 and python3