In python (2.7**) on a terminal using RHEL7, I wrote a python function that grabbed the data from a JSON output from a Multichain, but you can use it to grab any piece of the above.
$ python
>>> import subprocess
>>> import json
>>def grabData(key,chainName,streamName):
... data=[ ]
... jray=subprocess.check_output(['multichain-cli',str('{}'.format(chainName)),'liststreamkeyitems',str('{}'.format(streamName)),str('{}'.format(key))])
... print jray
... djray=json.loads(str(jray))
... for item in range(0, len(djray)):
... data.append(djray[item]['data'])
... return data
You should be able to fiddle with it to suit your needs (i.e.; change 'data' to 'file'), etc. Hope this helps :)