python scripts and logging