changes to django py3