Markdown implementation in Python