I know, that Bio.PDB.PDBList module contains retrieve_pdb_file function for downloading pdb files in different file formats (including pdb, mmcif,
Bio.PDB.PDBList
retrieve_pdb_file