Have it working when passing in a regular date.

Also pep8'd and pyflaked the files in question.