Made gridtk python 3 compatible.