Fixed problem with list and set in pymongo