tidy up python script
tidy up python script

ehealthafrica-ci/couchdb-lucene,rnewson/couchdb-lucene,ehealthafrica-ci/couchdb-lucene,eHealthAfrica/couchdb-lucene,ehealthafrica-ci/couchdb-lucene,eHealthAfrica/couchdb-lucene,eHealthAfrica/couchdb-lucene,rnewson/couchdb-lucene,rnewson/couchdb-lucene