change keys file format to dict