I think there is a way, you can specify the full import path as a string and perform a dynamic import. This project performs lazy imports: https://github.com/Russell91/pythonpy/blob/master/pythonpy/__main__.py    By importing the same exact function, you will have consistency on the function objects.