Flat surfaces in Sage