I was using urllib and switched to the requests module. I don't get connection reset anymore so it looks like it was an issue on python's side. 
↧
Sending one message per second on a hook gives me a ConnectionResetError
↧