Check If List Has Only One Element Python