Fix dictionary import with Django 1.7

Signed-off-by: Michal Čihař <michal@cihar.com>
Fix file import with Django 1.7

Signed-off-by: Michal Čihař <michal@cihar.com>