fix python.peg

remove no-need NewLine in function definition, and fix tests.