Flip color ramp and add color stops with python?

Is it possible to add new color stops and flip the color ramp using python. From what I can tell it doesn’t look like it. I kinda found a hack way of flipping the colors ,but I’m only using two colors. Not sure about adding new color stops.

Edit:
OK, I just figured out how to add new color stops.