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