Python Create Executable Shell Script If Command