Updated print functions to work with python 3.3