I would do it differently - add a say util/gfm.py that when you call it converts all the .md files to .html and puts them somewhere in static or whatever.