minetestmapper-numpy.py: refactor the code into functions, no more global vars and use argparse for command line arguments