Naming convention + flake8

@rgommers the main modification is s/MODES/Modes/g

Thanks.