Javascript Deep Array Comparison Python