Reformat of minimap.py