Python implementation of MasVis