add python solution for string distance