If `lookup_params_all` is an instance of `dict` you can iterate over its keys directly: `for key in lookup_params_all`. You can also remove the extra spacing inside any: `any(field_path in lookup_param  for lookup_param in lookup_params_all)`.

You can detect whitespace issues by running `flake8` from the source.