Update serialize.py

double time imported

import datetime imported but unused

and fix PEP8 style
Fix up pep8 formatting issues

Remove unused var.
Merge branch 'dslackw-patch-2' into develop

* dslackw-patch-2:
  Fix up pep8 formatting issues
  Update serialize.py