Create Excel files with openpyxl by falling back to run_shell with inline Python heredoc when execute_code_sandbox fails