Fix issue with script parser

* In the routine that removed outer parenthesis, was assuming
  a list object, but sometimes it would get a tuple.

Fixes #126