Although this doesn't matter now, as the ts has been removed, the initial reasoning behind this was that raw datetime object would not cleanly json.dumps() without a custom encoder.