Implement cmdj and use jsfmt
Monor python fixups