Beautify code for pylint
Fix tests to account for precision in date time