Parsing auth header in a valid way for both python 2 and 3
Removed basicauth dependency