Java Final Method Parameters Python Code Run