Explanation for python