This question is similar to Python - Find longest (most words) key in dictionary - but I need the pure number of characters.
Example input:
d = {\'gr
>>> max(len(x) for x in d)
or
>>> max(map(len, d))