A super simple method of using python on any website is PyScript, very easy. Basically just adding two lines of html, then you can use the tags <py-script> print(‘Hello, World!’) </py-script> with Python code between, and it does lots of Python. Even allows importing of modules, holy crap this is pretty awesome. I will add one thing I do NOT like is using a third party reference link to make it all work, this will be it’s crutch.
Now to figure out how to make it work within a WordPress post, maybe a plugin is needed.