Changed to python3 dictionary key check.
Removed .
Changed to python 3 key check