Joplin doesn't come with any Python runtime so it wouldn't work. Or if it does, using the local Python, it probably shouldn't and we may block it at some point.
Would it be possible instead to convert your code to TypeScript? (An LLM could do that easily) Or if Python is really required, I would recommend instead to create a third-party app that accesses Joplin via the data API
I was thinking about picking up the Night Mode button feature request
And maybe developing a plugin to define Global Search options - the idea is to allow to start global search with autocompleted rules (for example always excluding/including a notebook, tag, etc). It's based on this thread
as If I define a tag 'archive' for example I'd like to always start global search with -tag:archive.
I don't know actually if these can be done with Python, I'd have to take a better look at the documentation of both Joppy and Joplin-API-Python.
If they do the best way forward is to convert to TypeScript using an LLM. I don't think I could make use of Joplin Data API as the plugins are mostly UI changes.