Updated GeneratePalindrome.py