Build id on the fly as self.type may change along the way
Add TSVline2dict and PEP8-ify
Big overhaul after error analysis

The biggest change is the SQL query for extract_gene_mentions, which now outputs
exactly one row for each sentence.