CSS_SIZES = list(range(1, 7))
TAGS = {'python': 28059, 'html': 19160, 'tag-cloud': 40}
MAX = max(TAGS.values())
STEP = MAX / len(CSS_SIZES)
for tag, count in list(TAGS.items()):
    css = count / STEP
HTML Tag Cloud in Python