BUG: Make itervalues in empty position test Python 3 compatible.

Use `six.itervalues` so that the call works in both Python 2 and 3.