How To Check If A Value Is List Python