remove unneeded parens in python