using range isntead of xrange, for compatibility with python 3
Checking python 3.2 instead 3.0