added first version of loganalyze.py