Added Py 2.7 support

Quick and dirty - I'm not primarily into 2.7. It took me somewhat by
surprise that 2.7 doesn't make the result 'float' automatically fx. by
a division. Ie. math.log(8/10) will raise a divide by zero error,
whereas math.log(float(8)/float(10)) wont!! Anyway, chucked alot of
float commands in there, now it works :-)  Have fun ya'll