def get_bucket(self, name):
for bucket in self:<EOL><INDENT>for k,v in list(self[bucket].items()):<EOL><INDENT>if k == name:<EOL><INDENT>return bucket<EOL><DEDENT><DEDENT><DEDENT>
Find out which bucket a given tag name is in