Fixing authentication problems with urllib