Is there a script to get the torsions in a molecule?

Hello, All,

Is there a way to find all torsions in a molecule from a script? I'd like to do the equivalent of what the Conformers tool does when it automatically finds the torsions.

thanks,

george