Open a root file with python's open()

I just want to calculate the hash value of a particular root file.
is it ok to open a root file within python with open("root.root","rb") ?

Yes it is.