[python] How to check if a list is empty in Python?