Well,
as usual you search for a problem hours until you post something and just after you post it in a forum, you find out your self ...
I managed to get through the python scripts and found it is setting the global admin session when there is 'ALL' in domain_admins table. This was somehow missing for me. After adding it back I can see all domains and see myself as Global Admin in the profile.
Thanks anyway if you read that far