Quote some more URL characters
Made redirections a bit more flexible.
Made default argument specifications PEP 8-compliant.
Allow setting attributes to None as a noop, for convenience.