added python java comparison