This is v3 of my version of the patchset. The exporter and viewer changes were all in one patch for V2. For V3 I split them into 3 patches for the reasons below.
Patch#1 adds Python3 support to exported-sql-viewer Patch#2 adds Python3 support to export-to-postgresql Patch#3 adds Python3 support to export-to-sqlite Patch#4 cleans up some repeated use of date functions in the code. I added Adrian's signed-off-by to Patch#2 per the revised patch he sent in his review of V2. The content of patches 1, 3 and 4 is unchanged from V2 but I'm including all the patches again to hopefully make your application easier. I added Adrian's Acked-by to Patch#4 per his review of that patch in V2. Once these are applied I believe this is everything needed to run on a system without Python2. Thanks Tony