Python Logic Analyzer