Please replace with:

```python
value = __salt__['pillar.get']('{0}:{1}'.format(pillar_name, key), None)
```