Add support for periods.
Fix tests
Fix flake8 errors
Use period
Fix flake8 errors
Use period instead of date when creating a simulation.
Code cleanup.
Period in surveys