Fixed indexing problem in Py3 due to not recognizing int64 as int.