Some useful utilities for working with MongoDB and Python