Python Trace Table Programming