Function To Reverse String In Python