I am trying to build a python wrapper which basically login to a remote machine and search for a latest file in a particular directory and return the sha512sum of that file