Adds python/django version conditionals