Linear Searching Sets Python Code