added explanation to python file