meta: forward-port to Python 3

Fetched a glyph succesfully with it, I didn’t test all APIs through.

cc @benkiel