use `imp` library

So far, this method does work on all Python3 versions. There's still discussion
going on wheter or not remove the `imp` library in favour of `importlib`.
I'll stick to the first one, so we're ensured this works on all Python3
versions.