import pywikibot

SITE = pywikibot.Site('wikidata', 'wikidata')
REPO = SITE.data_repository()
SANDBOX_1_QID = 'Q4115189'

catalog_pid = 'P1953'
catalog_id = '379313'
item = pywikibot.ItemPage(REPO, SANDBOX_1_QID)
claims = item.get()['claims']
identifier_claims = claims[catalog_pid]
for claim in identifier_claims:
    if claim.getTarget() == catalog_id:
        claim.changeRank('deprecated', summary='deprecate statement')