Experimentation with documents with Python