Observer pattern for python for a TDD exercise