Modify print() to str()