change 'print str' to 'print(str)'