Either of these would be better:
``` python
        new_im = np.zeros(
            [i + 2 * p for i, p in zip(im.shape, pads)], im.dtype)
```
or 
``` python
        new_im = np.zeros([i + 2 * p for i, p in zip(im.shape, pads)],
                          im.dtype)
```