Python REST Auth