Welcome to the Let's Encrypt Community, @SaulGitH!
I'm the author of CertSage. I'm curious what version of CertSage you are using since I removed the dependency on the random_bytes function in version 1.4.1 (currently the latest released version). You might want to consider an upgrade. Please let us know if you run into any further problems.