Improving Python tab configuration