create explain.py

solution submitted by udacity forum member; not mine.