Modified heatmap.py