Fix flake8 errors

use "not in" instead of "not key in dict"
Remove blank line in __init__.py.

flak8 error fix