How can we get project_id from project_name using python api

Hello.
How can we get project_id from project_name using python api?

I can get json dictionary using:
mydict = git.getproject(‘group/project1’)
But I can’t get id from this dictionary.