Consider looking into iSH, it let's you access a Linux like environment where you can download and use common packages like vim and python in a terminal. It has to emulate x86 calls, but for my use case of writing notes in vim and compiling and running simple c++ programs, it works.
You can see some more information here:
https://www.reddit.com/r/ish/But I completely agree that it's practically a moral crime that the OS is so locked down. Just a sandboxed native terminal would make this device my main coding environment. The cheap wireless keyboard and mouse I use with it makes the lack of a native terminal where I'd have complete control the one thing holding it back for me.