Using Python to export a FBX file with Materials

Hi,

Is there any way to use python scripting to export an asset as an .FBX file with the materials contained within, or go I need to export the mesh separately from the materials?