compare java syntax to python