Quoted By:
Alright, using the PIL package u can apparently do something called "Palette.ADAPTIVE" to reduce the colors. With a maximum of 64 colors this is what I got.
There's still a bunch of yellows oranges and reds there which should have been combined to make room for other more unique colors, but I think one can get very good results.