[package] [ftr-osmc] close() properly after writing key, invoke python under a unix shell