Don't shadow the stdlib function index() with arg names

Fixes #119.