search: Fix print calls to be compatible with 3.x
lang: Fix print calls to be compatible with 3.x
misc: Fix print calls to be compatible with 3.x
misc/profiling: Use 3.x print function