This might be a bit extreme. You can try setting up a small lightwieght linux distro on your kindle. :
https://github.com/schuhumi/alpine_kindle
Might work. You can strip down gui stuff if you don't need it, and install python. I do not have a guide for it, but see if you can get this working.