PEP8 and small realtime fixes