hasattr check for requests 2.0 use cassette added type for httplib2 dictionary patch.