Small fixes for PEP8 compliance
changed 'range' to use generators instead of lists, for python2 and python3
Merge pull request #3 from thearn/develop

small changes for code cleanup / efficiency