title: Remove duplicates in list of object with Python
body: <p>I've got a list of objects and I've got a db table full of records.  My list of objects has a title attribute and I want to remove any objects with duplicate titles from the list (leaving the original).  </p>
  
  <p>Then I want to check if my list of objects has any duplicates of any records in the database and if so, remove those items from list before adding them to the database.</p>
  
  <p>I have seen solutions for removing duplicates from a list like this: <code>myList = list(set(myList))</code>, but i'm not sure how to do that with a list of objects?  </p>
  
  <p>I need to maintain the order of my list of objects too.  I was also thinking maybe I could use <code>difflib</code> to check for differences in the titles.</p>