reduceByKey in spark for adding tuples
<p>Consider an Rdd with below dataset 
where 10000241 is the key and remaining are values</p>

<pre><code> ('10000241',([0,0,1],[None,None,'RX']))
 ('10000241',([0,2,0],[None,'RX','RX']))
 ('10000241',([3,0,0],['RX',None,None]))


pv1 = rdd.reduceBykey(lambda x,y :(
                   addtup(x[0],y[0]),
                   addtup(x[1],y[1]),
                ))


def addtup(t1,t2):
    j =()
    for k,v in enumerate(t1):
        j = j + (t1[k] + t2[k],)
     return j
</code></pre>

<p>The final output i want is (10000241,(3,2,1)('RX','RX','RX)) 
but i get the error of cant add none type to none type or nonetype to Str .how can i overcome this issue?</p>