Merge pull request #320 from jeff1evesque/python_helper

#318: 'helper.py', adjust logic typos
#318: helper.py, change 'index, value' -> 'key, value'