Repaired some typo

1. Changed g to G in defining a function.
2. Added __name__=='main' in palindrome().
3. Fixed indentation problem in 2nd f(a,data=None) function in Default argument value.
4. Fixed Docstring's double typo in first line.