Python 3 support

imported the print function for print() to work on py2
changed the imports