pep8 and minor stylistic changes
fix travis build
Merge pull request #222 from dimagi/datespan-pep8

pep8 and minor stylistic changes