Update utils.py

Follows 302 URL redirection