Use operator.index instead of asserting against _inttypes