Changing output of analyze_spats_targets to stderr instead of print for some text