use plumbum's with statement