Hallo,
you could may add only two lines at the top to make it work for Python 2.7:
from __future__ import division
from __future__ import unicode_literals
At least that works for me. Are you interested in more input?
Because I think it is very useful tool, and worth some tinkering.