Please ask questions about Python in a Python forum.
Asking for a conversion of a 70 lines of code program to Matlab is not an option also: It is more work then the participators usually invest. And the benefit is small, because you could simply run the existing program in Python already.
I cannot understand the meaning of this line:
I have a file with 3 columns on which i have to run the script.. TIME MAGNITUDE MAGNITUDE_ERROR