Fixed errors 'E261' according to flake8.
Fixed errors 'E251' according to flake8.
Fixed errors 'E712' according to flake8.