make print compliant with python 3
add "on stim" option in cpp_file_convert