MoranvsV1.py looks like there is a type mismatch in gid_dict and the ids the DB query returns when working with twitter data... debugging