Fixed flake8 E251 violations

Fixed all the remaining E251 violations according to flake8 tool