Find Minimum And Maximum Element In A List In Python