Fixes for Pep8 Pylint violation and failing test of realtime.