After PEP 669 there is now a formal way to determine if a debugger is active, which replaces sys.gettrace.
Fixes #32