How about
```
valid_archs = ['x86', 'arm']
for arch in valid_archs:
  if os.path.isfile(os.path.join('native_libs', arch, 'libxwalkcore.so'):
    Execute(xxx)
```