Standardize dates

This is on top of the pep8 branch, though it can easily be applied without the pep8 formatting.