Re Match Python Defaultdict