It seems that DTR straight to GPIO.0 has a problem. Neither pullups, pulldowns, nor a series cap worked.
So I have the DTR line pull GPIO.0 to ground through a transistor. The transistor being an inverter I had to flip the three DTR commands in the script. It could also be done without needing to fip the DTR commands, using the right transistor setup.