Fixed the issue with console reporting. All console output is now written to sys.stdout

Change-Id: If8f08555420dbd00e9df703790d950a12438310f