sage functions for working with scl and lots more