latest py stuff

extrema.py works as intended if there is a membrane.dat file for it