python: fix the leftover cs_close()