At https://gitlab.orekit.org/orekit-labs/python-wrapper/-/blob/master/examples/, several of the notebook examples have reversed the ra and rp values resulting in negative eccentricity:

For example in the Propagation.ipynb:

ra = 400 * 1000 # Apogee

rp = 500 * 1000 # Perigee

i = radians(87.0) # inclination

omega = radians(20.0) # perigee argument

raan = radians(10.0) # right ascension of ascending node

lv = radians(0.0) # True anomaly

Giving the results:

<KeplerianOrbit: Keplerian parameters: {a: 6828137.0; e: -0.007322641593160872; i: 86.99999999999999; pa: 20.0; raan: 10.0; v: 0.0;}>

I do appreciate all the Java and Python examples which help me learn Orekit.