Updated print function for py3