Update markdown reader for Python 3