shebang invocation, a couple concise idioms

I imagine we can assume Python 2.7 (for the literal-style dictionary
comprehension)?
use collections
Merge pull request #11 from zackmdavis/minutiae

Use collections, small optimizations