Authentication in python client