defaultdict and nametuple module