add python solution for reverse string