What kind of context would be helpful to you?
Providing the dataset would be difficult, because I would need to remove all sensitive data. But I could do that, if it might help.
I tried to submit each syntax part individually, but that didn't change anything. The output contains no error messages, only the alter type results.
The Clean_Data.sps is fairly simple, but it might provide some insight:
COMPUTE sequence_number=$casenum.
COMPUTE datasource=2.
EXECUTE.
RECODE
var4 ('YES'='1') ('NO'='0') (else='9').
RECODE
var9 ('OptionA'='1') ('OptionB'='2') ('OptionC'='3') (else='9').
RECODE
varA to varZ (1 thru 5=copy) (else=9).
EXECUTE.
alter type Name (a1024).
alter type Number (f4).
alter type var1 (f11).
alter type var2 (a8).
alter type var3 (a20).
alter type var4 (f11).
alter type var5 (a12).
alter type var6 (a22).
alter type var7 (f11).
alter type var8 (a256).
alter type var9 (f1).
alter type var10 (a1164).
alter type varA to varZ (F11).
missing values var4 var9 varA to varZ (9).
Variable Labels
[...]
value labels
[...]
the two commands that are not executed, when the insert file command is submitted via python are COMPUTE sequence_number and alter type Name.