How to get the least common element in a list?
most_common
without any argument returns all the entries, ordered from most common to least.
So to find the least common, just start looking at it from the other end.
What about
least_common = collections.Counter(array).most_common()[-1]