Fixed issue getting raw keys with Py3