Emit error to stderr. It is not clear if this fits with the heroku API.
Make python detection more forgiving.