refactor types.py->settings.py