Fixed python 3 compatibility of the last fix of gridtk.