Try to forward Python exceptions a bit more meaningfully.