Use the subprocess shell option on Windows to allow running Python scripts directly, but avoid using it on Unix where it tends to cause problems.