implement --action=sum for ostasum.py