import pywikibot

site = pywikibot.Site("wikidata", "wikidata")
repo = site.data_repository()
item = pywikibot.ItemPage(repo, "Q52824598")

item_dict = item.get()
clm_dict = item_dict["claims"]
clm_list = clm_dict["P1684"]

for clm in clm_list:
    clm_trgt = clm.getTarget()
    #print(clm_trgt.amount)
    clm_trgt.text = "HIER WOHNTE WALTER STEMPEL JG.1901 'SCHUTZHAFT' 1938 SACHSENHAUSEN DEPORTIERT 1941 ERMORDET IN MINSK"
    clm.changeTarget(clm_trgt)
    print(clm_trgt.text)
    print(clm_trgt)
    print(dir(clm))
    print(clm.on_item)
    
HIER WOHNTE WALTER STEMPEL JG.1901 'SCHUTZHAFT' 1938 SACHSENHAUSEN DEPORTIERT 1941 ERMORDET IN MINSK
{
    "language": "de",
    "text": "HIER WOHNTE WALTER STEMPEL JG.1901 'SCHUTZHAFT' 1938 SACHSENHAUSEN DEPORTIERT 1941 ERMORDET IN MINSK"
}
['SNAK_TYPES', 'TARGET_CONVERTER', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_formatDataValue', '_formatValue', '_type', 'addQualifier', 'addSource', 'addSources', 'changeRank', 'changeSnakType', 'changeTarget', 'fromJSON', 'getID', 'getRank', 'getSnakType', 'getSources', 'getTarget', 'getType', 'has_qualifier', 'hash', 'id', 'isQualifier', 'isReference', 'on_item', 'qualifierFromJSON', 'qualifiers', 'rank', 'referenceFromJSON', 'removeQualifier', 'removeQualifiers', 'removeSource', 'removeSources', 'repo', 'setRank', 'setSnakType', 'setTarget', 'snak', 'snaktype', 'sources', 'target', 'target_equals', 'toJSON', 'type', 'types', 'value_types']
[[wikidata:Q52824598]]