use python to filter xlog