adds explanation of python code to readme