not happy with this but running python scripts with the -P command line could crash in simple cases (like selecting an object).
not happy with this but running python scripts with the -P command line could crash in simple cases (like selecting an object).