Python Check If Variable Is List