remove some flake8 warnings
fix unit tests failed by observer_callback() being None if AsgUpdater is being used separately