How To Check The Type Of Data In Python For All Selected Lines