If there was a syntax for Python, it would likely be in the syntax section of the directory.
Do keep in mind that Drafts is not designed to be a code editor as noted here:
As such, you would likely find a code editor offers more of the features you would want when working with Python code. If you simply want it as a reference, then fair enough, but syntax highlighting for programming languages beyond the basics tends to require some notable effort and more so when you want to accommodate common modules as you would likely want to do ith Python.