Encode non-multi selects correctly if array

Used by media object frontend module

Fixes regression from 2c8a5230e113ca246924e4538521cc863bd92e96 and 12ffd3686ef7b1560c0c294e12a81108a06ba9f6.
Try python first as some OSX users have gnome-open