Use python3 version of the print function when running under python2. Also added "from __future__ import division" to a few more module files.
Now this same code can be run with either Python2.7 or Python3.