test/py: highlight warnings in the log summary