update python solution for Majority-Element