Update allhcalc.py

Section compactness check added.