fixed unsigned int warnings caused by iterating over range, which cython declares as size_t