Mode Function In Python