Export data table via scripting in python?

Hey all,

is there a way to export a data table via python? I only know how to do it with the context browser and clicking “export”.

Thanks!