Added base_import option to change the import of a custom base class.