logging: unified logging in python scripts