changes for Mac Py2APP script, for OS X 10.9.2