Add option to attach a python debugger if test fails