Maybe I am wrong, but I didn´t find a way yet to check which profil is loaded through the python API.
Could you add a method for getProfile which returns the name of the currently loaded profil?
It would be pretty useful to be able to make some plugins only useable if a specific profil was loaded.
Example:
While I have loaded my trading profil, my other python scripts should not be executed, and the other way round.
Cheers