After switching to Python 3.7, I need to replace all previous codes where resources are accessed via __file__ with the new importlib_resources method.
__file__
importlib_resources