added error check for opening *benchmark*.py script