my friend is learning python.  i'm showing him refactors...