Some more graceful handling of logging with only .pyc available