PAL coding and decoding with Pyctools.