Why is bpy.ops.ptcache.bake is not executing bake to external cache when bake_all() working?
make sure use_disk_cache is enabled or enable it before baking the cache : 

object.modifiers['Smoke'].domain_settings.point_cache.use_disk_cache = True