handle django tuple list in decode & encode