made pyside imports try except in runscript