Tweaks to js<->pythong bridging code.