python check if item is in two lists