fix print parentheses

This fixes simple typos from the conversion to use print function.