Use tied hash db-s with Python and Ruby
