check if list in not empty python