Implementing a Command Bus in Python