Function To Reverse List In Python