Native csg written in python