Use python's logging module for output, change pw error dialog slightly.