In the Mongo Driver Requirements:
High Priority
- database profiling: set/get profiling level, get profiling info
Pymongo, as well as MongoDB shell supports this.
You can enable it through command, but I think separate method should be added.
db.command(BasicDBObjectBuilder.start().add("profile", 0).get());