Only print backtrace on debug builds, since on release builds there is only some useless output from a python library and fftw.
Only print backtrace on debug builds, since on release builds there is only some useless output from a python library and fftw.