thelastbaldwin/ofSketch — pull request #2 by dalanmiller (2012-12-04 06:14:32+00:00)
Title: Hewwo Steev Mainor

# BOOM

Just a couple things I saw, mostly structural improvements with a little added syntax sugar, and some comments of stuff I saw.

* `collection.count()` should return the integer you're looking for
* `[int(x) for x in iterable]` > `map( int, iterable)`
* Opening the MongoDB connection in each route will prevent the connection from going stale and causing a reconnection issues.
* [imports always go in a list](http://www.python.org/dev/peps/pep-0008/#imports)
* Adding &lang=en to your Twitter request will limit the results to English :speak_no_evil:

:monkey: :shipit: :monkey_face: