This is a good idea, but the code style could use some changes, I think.

`dont_verify_hostname` is an awkward name. Why not just call it `verify_hostname` and default it to `True`, allowing the user to set it to `False` to stop verification?