> I think this string is missing a MAX_MEMORY at the end: i.e., '... you can increase the limit by changing MAX_MEMORY' % (MAX_MEMORY/1e9)

It's here.  It's just on the next line.