G_mmpbsa python builtins module

GROMACS version:
GROMACS modification: Yes/No
Here post your question

May I ask how to solve this problem?

I am trying to generate the Average Binding Energy Calculation:

command

python MmPbSaStat.py -m energy_MM.xvg -p polar.xvg -a apolar.xvg (or sasa.xvg)

But the error occured:

File “MmPbSaStat.py”, line 39, in
from builtins import range
Import Error: No module named builtins

Then I downloaded the builtins folder from Github and put inside and try to run

Another error occurs:
File builtins.py,line 195
def min (*args, key=None, default=None)

SyntaxError: invalid syntax

Appreciate so much for anyone who provides the answers