tabbar mode and some python improvements