'Takes in a binary file name and returns a tko job object.
The method first deserialize the binary into a protocol buffer
job object and then converts the job object into a tko job
object.
:param
infile: the name of the binary file that will be deserialized.
:return: a tko job that is represented by the binary file will
be returned.'

def deserialize_from_binary(self, infile):

    job_pb = tko_pb2.Job()
    binary = open(infile, 'r')
    try:
        job_pb.ParseFromString(binary.read())
    finally:
        binary.close()
    return self.get_tko_job(job_pb)
