[python] Error: Segmentation fault (core dumped)