In lines 57&58, the datatype is not specified!

That should be 
lower_blue = np.array([110,50,50],dtype=uint8)
upper_blue = np.array([130,255,255],dtype=uint8)
Please edit that, otherwise it's giving an error.