Revert "Revert "flake8 is wrongly suggesting to replace '== None' by 'is None'""

This reverts commit bb94c54903966237bd92a094f8b3c351f2a2ef1b.