minetestmapper-numpy.py: refactored code using a class World to define the calls needed to scan and generate the data for the map (also moved the legacy cruft to functions)