Python subprocess interface