Remove stray print statements.

This should maybe be backported to -stable? If anyone feels strongly that it should I will open a PR.