Remove semicolons from python generated code.