I am using PyMongo. Do I have to close a MongoClient after use?

Fully iterating the cursor with list() will automatically close the cursor.

Also an open cursor does not consume a file descriptor.