fixed logging for python 2.7 apps, so that they get sent to the dashboard