Fixing pep8 issue and also adding debug log statement

Change-Id: I09dac59cad4ca7f11a72c02a7364dfade401c74f