Added a check for WWW-Authenticate header.
pep8