Fix PYTHONUNBUFFERED not being set correctly
Send webhooks with application/json content type

Also raise errors.