Backport build changes to support Python 3.x. * build/check.py: Backport r1833223 to add parentheses around 'print' statement. * SConstruct: Backport r1814604 and r1811083 to add parentheses around 'print' and decode file contents as 'utf-8'.. Reviewed by: astieger, rhujiben