expand_lists should default to False
Also catch NameErrors which would indicate missing quotes