changed state machine handling in PyProducer

- now waits for change in state machine inside On*() function calls instead of updating status later by directly sending a packet
- warning: wait time is indefinite as there is no exit condition except the expected state machine status -- coud be improved e.g. with timeout later
added PyLogCollector implementation and wrapper

- based on TestLogCollector
- not yet included in tests or example code