Rest Api Get Query String Python Functions