Adds stripping of trailing white space to Python