Simple signal slot implementation in Python