Fix spelling issues in python code comments and messages (#1231)

22 files changed