(bug 57838) Wrong syntax with new print function for py3 compatibility

The new py3 print function is available for 2.6+ versions. We have just to import it from __future__.

follow-up for https://gerrit.wikimedia.org/r/#/c/97876/

Change-Id: I983d07f362cd277820f27f3e00c2629415290625
Merge "(bug 57838) Wrong syntax with new print function for py3 compatibility"