added python API for opponents