Fix raising too many tries exception
Increase the maximum number of tries and make it a "constant"
Make urlopen timeout on 20 seconds so we don't get stuck forever