Thanks! Yes I did see that code but didn't know what to do.
I'll try removing it and see how it goes.
Won't be enough. A few lines above it there is a text = page.get(). Default for get is get_redirect=False. So you have to modify this line, too: text = page.get(get_redirect=True)