Fixed issues with message logging in jobs.py, now logs json