Rest Api Get Query String Python