Create massage.py

This is required to do any accounting functions that need to look at lines rather than just 'entities' or 'objects' (in the IPP nomenclature.