Procedurally generated fantasy writing with Python