Useful for code such as that in PyJapc and other JPype using libraries, which can't use the imports mechanism.