Fix build errors.

One missed print statement and one minor flake8 warning.