Parser writen in Python for different log files