Maybe the following

```
if current_tmo in ... :
    if mpath ... :
    else :
    (stdout, stderr) = exn_on...
else :
    util.SMlog
````

will spare some lines and make the logic clearer