reimplemented everying as module-level functions
updated get_agi_seq.py to use module-level functions
updated test to use module-level functions
fixed lookups of dataset and target dicts
fixed typo in get_protein_from_ncbi
merged tair branch into module-level functions branch
merged module-level functions back into tair branch