This seems unnecessary. Should just change the below `else` to `elif self.verify_hostname`, and remove the `elif ...: pass` here.