Fix bug in yara-python causing segmentation faults