Fix Python code so it actually works.

There was a bug in the Python code where it was stripping off the first 16
bytes of data.  This caused json decode errors on the desk.com side.  That bug
is now fixed.

Also, remove the dependency of the isoformat library and reformat the code,
removing the hard tabs.