I need to install Python Chardat (for use in recognizing Thai characters)

I’m unable to install Python3.7 (abi) in SailfishOS 3.4 or 4.0.1, any way of installing this and allowing it to work? I absolutely have to have this so my keyboard is recognized as something other than '?'s

My keyboard had worked on 3.x (I know on 3.3.16)… Here is the link to the keyboard (https://github.com/nerd7473/jolla-keyboard-thai-master), I’m not even sure if that’s the issue, but it’s the best bit of info I’ve got. I’d originally made this keyboard for my girlfriend.