Export components

How do I export components in batches to CAD or other formatted models via python script?