improve python workmode