The URL should be 'https:' not 'http:'

Also, the [len('gs://'):] construct seems overly complicated.  Maybe something like this instead?
url.replace('gs://', 'https://storage.googleapis.com/', 1)

(I can't imagine what a url would look like that had more than one 'gs://' in it, but added the '1' to the parameters just in case.)