This line is fine as-is, but btw: no need for the list comprehension it could be:
```
dict((k, getattr(edxmako, k, None),) for k in DJANGO_VARIABLES)
```
or you could use a dict comprehension:
```
{k: getattr(edxmako, k, None) for k in DJANGO_VARIABLES}
```