add scratch oligotm code and correct more py_ssize_t issues in seqstr