Update to fix bug.

This is a change that Rebecca asked me to make to the code. It fixes
the "TypeError: Argument must be bytes or unicode, got 'long'" problem.