fix jc template and tidy up pot.py a bit to use new OtfgPot class