Transform Supercell to Unitcell

Hi,

I’ve supercells of around 10K MOF structures in cif format. I’m looking to convert them to unitcell. But I’m not sure if there any pymatgen packages (or any other libraries) doing this? - any leads to would be highly appreciated.

Kind regards
Erick