Tweak post prune logic, min_delta criteria

Hi @e-koch

The change to pruning.py fixes the min_delta discrepancy you had before

I've also reorganized the function body of post_prune to flatten the indentation