VEDirect Python not compatible with MPPT 150/70

Hello,
I’m using python on an rpi to talk to a MPPT 150/70. I pip installed vedirect.py. This python code is not compatible with the MPPT 150/70. Below in bold are one of my modifications to get it working.

Is there a python routine that works with MPPT 150/70?

def parse_pdu(self, frames):
for frame in frames:
if frame.startswith(b’Checksum’) or frame.startswith(b’:‘) or **
** frame.startswith(b’\r’)
: