'Find one job from MongoDB Job Collections.
Parameters
args : dictionary, find items.
Returns
dictionary : contains all meta data and script.'

@AutoFill
def find_one_job(self, args={}):

    temp = self.db.Job.find_one(args)
    if (temp is not None):
        if ('script_name' in temp.keys()):
            f = open(('_' + temp['script_name']), 'wb')
            f.write(temp['script'])
            f.close()
        print '[TensorDB]    Find    Job:    {}'.format(args)
    else:
        print '[TensorDB]    FAIL!    Cannot    find    any:    {}'.format(args)
        return False
    return temp
