add python util to set badge type