Add pymode flag definition open in the same win