This is what I was taking about earlier.  Python strings are immutable, but one 'https' is not guaranteed to be the same as another instance of the same string (it only is most of the time, annoyingly).  This should be a ==