As we moved production environment to Python 3, I think that the following code is no longer relevant:
try:
from importlib import reload
except ImportError:
from imp import reload
# Python2.x: Make default encoding as UTF-8
if sys.version_info.major == 2:
reload(sys)
sys.setdefaultencoding('UTF8')
As we moved production environment to Python 3, I think that the following code is no longer relevant: