hi @baddroid
Not teaching you how to suck eggs but the testing you are doing is not in line with what you are doing with certbot.
The command you are using && perl -e 'sleep int(rand(3600))'
When you use curl and python you should include this as well. My suspicion is that this is an Operating System related issue rather a library issue.
Have a look at this chain where someone was doing something similar to what you are doing
Andrei