Fixed the bugs with print not being a function on py3.x

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>