Trying to get this to work… but missing something here, as it complains about syntax:
bakeAnim = True
mel.eval('FBXExportBakeComplexAnimation -v '+str(bakeAnim)+';')
// Error: Syntax Error: Use FBXExportBakeComplexAnimation -v true|false //
Error: RuntimeError: file <maya console> line 3: Error occurred during execution of MEL script
line 1: Syntax Error: Use FBXExportBakeComplexAnimation -v true|false #