python branch fix