The /usr/local/bin/crontab wrapper script has a bug which presents a good opportunity to port it to python. The bug is that when the ssh connection to fetch an existing crontab from the cron host fails it doesn't abort. Instead it just acts like there is no cron file on the remote and stumbles on.
See T156168: Tool labs crontab host tools-cron-01 cannot be ssh-ed into within a service user for the config failure that caused this to be noticed