You have a typo in your last entry for green: 217.0/25
This works:
cdict = {'red': ((0.0, 51.0/255, 51.0/255),
(0.2, 180.0/255, 180.0/255),
(0.4, 175.0/255, 175.0/255),
(0.6, 206.0/255, 206.0/255),
(0.8, 0.0/255, 0.0/255),
(1.0, 102.0/255, 102.0/255)),
'green':((0.0, 51.0/255, 51.0/255),
(0.2, 180.0/255, 180.0/255),
(0.4, 200.0/255, 200.0/255),
(0.6, 211.0/255, 211.0/255),
(0.8, 130.0/255, 130.0/255),
(1.0, 217.0/255, 217.0/255)),
'blue': ((0.0, 51.0/255, 51.0/255),
(0.2, 180.0/255, 180.0/255),
(0.4, 7.0/255, 7.0/255),
(0.6, 106.0/255, 106.0/255),
(0.8, 195.0/255, 195.0/255),
(1.0, 237.0/255, 237.0/255))
}
res_map = plt.matplotlib.colors.LinearSegmentedColormap('my_cmap',cdict,256)