Ive spent considerable time trying to essentially loop over a root directory, and then run a command against each directory like:
for dirs in os.walk(cbdir):