Python script to retrieve the undulations along an axis of a lipid bilayer