Add Python script for logging