how to reverse a string in python using reverse function