patches.py: make a named tuple for cache data
patches.py: make a substructure for patch analysis.