utility: Added log_exception.py (copied from ilastik)