Update to Django python3 and fix its problems