some python3/django1.6 migration