1. Fix for process status changes
2. Run autopep8

Change-Id: Id218bcee614aac4bc5d4befdd941b3f7719ddf09