Python TypeError: 'NoneType' object not iterable - What's causing it

visit shbcf.ru