Obtaining length of list as a value in dictionary in Python 2.7,len(dict[key])