Added "from __future__ import print_function" in all relevant places except xlib