add Observer Pattern - python