Minor python improvements and logging (#245)