use init_shogun_with_defaults() Then you dont need to define this print_message stuff