fix truncation of Python lists