added cos/misc.py with functions for re-makeing x1dsum from asn tables