minetestmapper-numpy.py: compatibility fixes for and python2 io lib and python3