Python Check If A Variable Is A List