Python ext raises exceptions instead of segfaults