Fix pep8 and dict test