[python] add uri comparison