Python Test If Variable Is List