sum is a command from core python, but you use sum as variable name in chapter 6. page 96 in the analyze function. input is a python command name too.