Add python bindings for invariants, extended connectivities and
canonicalization