add ant mode and python mode