reverse a string in python using inbuilt function