Python implementation of Semidiscrete Decomposition