Add agent headers in request.
Use python's logging module to log events.

Also add -q or --quiet option to the command line script to
hide non error messages.