minetestmapper: Fix the way ylist is computed, use cStringIO instead of rolling own...