Fix py3 compatibility in glyphs/trail