Basic authentication in python client