The Python document processor