Sane Python subprocess wrapper