Add template for generating Python code.
Remove inappropriate printMessage() function call.