Ah, this has not been documented fully, I see!
Add the line
writeAbinitInput(bulk_configuration, "my_dir")
to your script, where "my_dir" is a directory that must exist. This must be after using setCalculator() to assign the AbinitCalculator to the bulk_configuration.