how to return a reverse string in python