add observer at python