logging: add default handler in python2 scripts