added a feature to run a string array of Python statements