[PATCH] fix using https url with non-ssl auth in python 2.7.9+