Check Index Of Element In List Python