why not
```
Environment.objects.filter(name__in=args)
```
(as variable or in for statement)?