make adjustments to brython so that we can emulate import hooks with current import mechanism