def MyWriteFASTAMolecule(ofs, mol): if not OEHasResidues(mol): OEPerceiveResidues(mol) OEWriteFASTAFile(ofs, mol)