Would it be better to split the commands and avoid shell=True? shell=True always makes me worried because of shell injection.