fix segfault

define PY_SSIZE_T_CLEAN and use Py_ssize_t instead of size_t