python: Add (device, arch) specific filter