Fixed pylint issues.
Refactor observe and also added functional tests for OBS.