Code to dump out any Python object to text in a way that aids debugging / useful logging.