update python print, do not wrap a newline
add printf