the python version of reverse string is easy