use pyme's get_key to find primary key