MACRO-APE and PERFECTOS-APE tools