Function To Reverse A String In Python