How to generate Ambient Occlusion from scripting?

Hi everyone,
After many hours of research, I did fail to find a function that would allow me to call the function “Bake Render Meshes -> Ambient Occlusion”.
If someone could help me to find the function, or confirm that it doesn`t exist in the API. That would be very nice. :slight_smile: