python – GPS Altitude data mapping for ios and android phones


I am looking for a way to map GPS altitude data for android and ios phones:

Android and ios devices returns altitude in a different formats:
Android: Get the altitude if available, in meters above the WGS 84 reference ellipsoid.
If this location does not have an altitude then 0.0 is returned.
iOS: The altitude, measured in meters. Positive values indicate altitudes above sea level.
Negative values indicate altitudes below sea level.
Here is a nice article that explains different altitude references:

is there any python lib to normalize data or a formula to transform formats between each other ?