Python 3 compatibility in glyphs/sprint