Read and write Motorola Codeplugs (.ctb) from the commandline.
pip install codeplug # or download from above
# set the keys in codeplug.cfg
codeplug decode yourfile.ctb
# modify yourfile.ctb.xml
codeplug build yourfile.ctb.xml
Note: If you own a copy of MOTOTRBO CPS, you can use codeplug-prepare to extract the keys.