check for output of python script