logging configuration, Python 2.7