On a brand new OS (like a new Raspberry Pi), which has never cloned a repo from GitHub over ssh before, there is a prompt to accept the github fingerprint. This could be checked for using paramiko and the fingerprint added to the known hosts file so that hint will clone a repo first time.