Python codes for analyzing our databases