I have not seen this movie, so I could be wrong, but Jon's answer doesn't make any sense to me. Without knowing the context, I would analyze the sentence this way:
"you only need to HANG mean bastards" = There is only one kind of person that you need to hang. (You do not need to hang anybody else. You "only" need to hang "mean bastards.")
"but MEAN BASTARDS, you need to hang" = You definitely do need to hang mean bastards. (Or: When it comes to the subject of "mean bastards," you have an obligation to hang them.)
In other words: "You ONLY need to hang mean bastards (not anyone else). BUT you definitely do NEED to hang mean bastards (you can't just avoid hanging anybody at all)."
That's what it looks like to me, although again, I have not seen the movie.