Fixed a syntax error.
Fixed flake8 formatting errors.