Solves deprecation warning from #1432 (closed) by re-implementing importlib
module instead of pkg_resources
. Notice this change from the latter to importlib
was already made 5aab8249 !416 (merged), but it was reversed back to pkg_resources
f5fe6bea for some reason.
Closes #1432 (closed)