Python program stub to check if there is a 'problem' and do something if there is