Markdown parser in Python