Literate programming in Python