add py template with log