An implementation of the pythia tool in java