Minor nitpick (not really bothered): I think the more idiomatic way of doing this is:
```
sends = dict([(i, s) for i, s in enumerate(sends) if len(s) > 0])
```