simple Analyzer in python