add python solution for majority element