This Python code implements the Minimal Pole Method (MPM) for both Matsubara and real-frequency data.