Python Execute Shell Command And Wait