I think what we want here is:

```python
parts['feature_geocodes'][feature] = fg
```