How do you calm a rattlesnake? Give it a friend, scientists say