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

Resolves #318.