Python Rest Api Token Based Authentication C