Fixed errors 'E712' according to flake8.