Python Majority Element Calcuation