How to access Job info from post job script?

Hi, I have a very simple question that I am unable to find the answer for. How can I access information about the Job which is calling the post job script? I would like to be able to access job name, id and potentially some extra key/value pairs. Everything I have found so far requires a JobID to be passed to GetJob() but what if I want to get the JobID of the job that called the script? I hope it makes sense and thanks for any tips in this matter

This piece of code seems to work:

from System.IO import *
from Deadline.Scripting import *

def __main__(*args):
    deadlinePlugin = args[0]
    job = deadlinePlugin.GetJob()