code: def simplify_expression(txt):
      
      minimal = re.sub(r'\s', ' ',
                       re.sub(r'\s(?=\W)', '',
                              re.sub(r'(?<=\W)\s', '',
                                     txt.strip())))
      # add space before some "(" and after some ")"
      return re.sub(r'\)(?=\w)', ') ',
                    re.sub(r'(,|\b(?:{}))\('.format('|'.join(RESERVED_WORDS)), '\\1 (', minimal)
                    )
docs: Remove all unecessary whitespace and some very usual space