def compile(job): g = Graph(job.name, job, username()) from pprint import pprint pprint(g.toRepresentation())