Removed abort from exception handlers, fixed python api