Yeah, the code *probably* works, but you won't get visual feedback in KUAL, and on calibre's side, it won't detect a PW5 either.
Someone posted another implementation a while back, FWIW:
https://github.com/sandman7920/ccsync (there's also a matching thread on MR).