There is a module for everything in Python!
Convert Markdown syntax into HTML:
from markdown import markdown
markdown("# this is my header") '
'
markdown("> a cool quote") '
\n'a cool quote
\n
markdown("emphasized text") '
emphasized text
'
#html #markdown