use six.moves.urllib
Use ISO-8859-1 encoding for http basic auth. This fixes basic_auth_header for Python 3.x.