How To Check If A Variable Is A List Python