Sampling information of historical tags

Hi all,
I have more than 10K historical tags in my system and I've decided to look at their sampling modes and rates to better manage space on my database.
This is what I have so far:

def browse(path='histprov:DB:/drv:controller:default:/tag:simulator'):
    for result in system.tag.browseHistoricalTags(path).getResults():
        if result.hasChildren():
        	browse(result.getPath())
        else:
        	tgPth = str(result.getPath())
        	tagg = tgPth.split(":")
        	tgs = "["+tagg[4]+"]"+tagg[6] #modifying the tag path to a better format to suit system.tag.getConfiguration
        	tags = system.tag.getConfiguration(tgs)
        	for tagDict in tags:
        	# Iterate over the dictionary with the iteritems function
        		for key, value in tagDict.iteritems():
        			if key == 'tagGroup':
#        				print tgPth, value
       			       			
browse("histprov:<histprovName>:/drv:<drvName>:system:/")

Using this, I'm only getting a list of all historical tags and their tag group.
However, as I understand, tag group information is only relevant if "Sampling mode" of that tag is "Tag group".
What would be the best way to get sampling mode and sampling rate information for each tag?