Run command with administrator:
secedit /export /cfg group-policy.inf /log export.log
In python:
os.system('secedit /export /cfg group-policy.inf /log export.log')
All info will be exported to group-policy.inf file and then parse the file will get the info you want.
See secedit command.