Python log analysis basics