The MakeHuman source code should be available in your MakeHuman installation directory. You will need to find the directory containing the MakeHuman Python code. It should contain the necessary modules and classes you need to interact with MakeHuman programmatically, including those related to the company information API.
In your Python script, you need to import the necessary MakeHuman modules to interact with the software, including the company information API. You mentioned trying to import the "core" module, but you encountered issues. Make sure you're using the correct module name and that the module is in your Python path.
Assuming the "core" module is what you want to use, including the company information API, you should import it like this:
from core import G
Your Python script should be in the same directory as the MakeHuman source code or in a directory where Python can find the MakeHuman modules, including those related to the company information API. If you place your script in the same directory as MakeHuman's main Python script (e.g., makehuman.py), it might help.