modify mdoc in python.snippets